﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="3-6a.aspx.cs" Inherits="实验三._3_6a" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
        </div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="LinqDataSource1">
            <Columns>
                <asp:BoundField DataField="id" HeaderText="id" ReadOnly="True" SortExpression="id" />
                <asp:BoundField DataField="name" HeaderText="name" SortExpression="name" ReadOnly="True" />
                <asp:BoundField DataField="sex" HeaderText="sex" SortExpression="sex" ReadOnly="True" />
                <asp:BoundField DataField="img" HeaderText="img" SortExpression="img" ReadOnly="True" />
                <asp:BoundField DataField="sclass" HeaderText="sclass" SortExpression="sclass" ReadOnly="True" />
                <asp:BoundField DataField="cid" HeaderText="cid" SortExpression="cid" ReadOnly="True" />
                <asp:HyperLinkField DataNavigateUrlFields="id" DataNavigateUrlFormatString="3-6b.aspx?id={0}" DataTextField="id" DataTextFormatString="修改" NavigateUrl="~/3-6b.aspx.cs" Text="修改" />
            </Columns>
        </asp:GridView>
        <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="实验三.DataClasses1DataContext" EntityTypeName="" TableName="Student" Select="new (id, name, sex, img, sclass, cid)">
        </asp:LinqDataSource>
    </form>
 </body>
</html>
